#include <iostream>
using namespace std;

int main(){

    int var = 100;
    int *p = NULL;
    int **pp = NULL;
    //1.
    p = &var;
    pp = &p;
    cout << "var : " << var << endl;
    cout << "&var: " << &var << endl;
    cout << "p   : " << p << endl;
    cout << "*p  : " << *p << endl;
    cout << "&p  : " << &p << endl;
    cout << "pp  : " << pp << endl;
    cout << "*pp : " << *pp << endl;
    cout << "**pp: " << **pp << endl;
    cout << "&pp : " << &pp << endl;

    system("pause");
    return 0;
}